SET(wxWidgets_USE_UNICODE ON)
SET(wxWidgets_USE_DEBUG ON)
FIND_PACKAGE(wxWidgets COMPONENTS core base REQUIRED)
SET(Boost_USE_STATIC_LIBS ON)
FIND_PACKAGE(Boost COMPONENTS filesystem system REQUIRED)
INCLUDE_DIRECTORIES(${wxWidgets_INCLUDE_DIRS})
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})
ADD_DEFINITIONS(${wxWidgets_DEFINITIONS})
ADD_DEFINITIONS(${Boost_DEFINITIONS})

FILE(GLOB_RECURSE sources ${PROJECT_SOURCE_DIR}/src "*.cpp")

ADD_EXECUTABLE(magicdoc ${sources} ${dependencies})
TARGET_LINK_LIBRARIES(magicdoc
  ${wxWidgets_LIBRARIES}
  ${Boost_LIBRARIES})
